package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.FavouriteMovie;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fmx
 * @since 2024-11-09
 */
@Repository
public interface FavouriteMovieMapper extends BaseMapper<FavouriteMovie> {

    List<FavouriteMovie> selectByUserId(Long userId);

    int deleteByMvId(Long mvId);
    // 新增一个用于插入的方法
    int insertFavouriteMovie(FavouriteMovie favouriteMovie);
}
